/**
 * $Id: Position.java 2 2011-09-03 10:16:43Z adriftrock@gmail.com $
 */

package com.swehr.server.models;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Rock Huang
 * @version 0.1
 */
@XmlRootElement
public class Position {
    private int id;
    private String name;
    private String type;
    private String refOrg;
    private String comment;

    public Position() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRefOrg() {
        return refOrg;
    }

    public void setRefOrg(String refOrg) {
        this.refOrg = refOrg;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer();
        sb.append("{ \"id\":\"").append(id).append("\"");
        sb.append(", \"type:\"").append(type).append("\"");
        sb.append(", \"refOrg:\"").append(refOrg).append("\"");
        sb.append(", \"name:\"").append(name).append("\"");
        sb.append(", \"comment:\"").append(comment);
        sb.append("\"}");
        return sb.toString();
    }
}
